package com.yc.cloud.portal.service;

import com.yc.cloud.common.basic.utils.PathUtils;
import com.yc.cloud.portal.common.CustomarConstants;
import org.springframework.stereotype.Service;

import java.io.File;
import java.nio.file.Paths;

/**
 * 提供该项目的文件路径服务
 */
@Service
public class ARPathService {

    private final PathUtils pathUtils;

    public ARPathService(PathUtils pathUtils) {
        this.pathUtils = pathUtils;
    }

    public File getOcrFilePath(String deviceNum, String fileName) {
        return Paths.get(pathUtils.getBasePath(), deviceNum, CustomarConstants.OCR_FOLDER, fileName).toFile();
    }
}
